package com.aaa.day113.demo4;

import java.util.function.Consumer;

/**
 * @Description:
 * @author:LiWei
 * @date:2022年11月03日10:42
 */
public class TestConsumer {
    public static void main(String[] args) {
        Consumer<Double> c=a->{
            System.out.println("洗脚需要花费:"+a);
        };

        fun(c,1500.0);
    }

    public static void fun(Consumer<Double> consumer,Double money){
        consumer.accept(money);
    }
}